package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.ScanStoreAo
import com.tourlaid.mamagerment.entity.ResponseData
import com.tourlaid.mamagerment.vo.StoreListVo
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 * Created by xiaoyongge on 2017/7/23.
 * 首页
 */
@RestController
@RequestMapping("/tld/admin/scans")
class ScanStoreAction {

    @Resource
    var scanStoreAo: ScanStoreAo? = null

    @RequestMapping("/queryHotStore.json")
    fun queryHotStore(cityName: String, pageNo: Int): ResponseData<MutableList<StoreListVo>> {
        val responseData = scanStoreAo!!.queryHotStore(cityName, pageNo);
        return responseData
    }
}